package com.blw.demouser.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import sun.misc.BASE64Decoder;
import sun.misc.BASE64Encoder;

import javax.crypto.Cipher;
import javax.crypto.KeyGenerator;
import javax.crypto.SecretKey;
import java.security.Key;
import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;

/**
 * @author baolw
 * @date 2018/1/30 15:45
 */
@RestController
public class IndexController {
    @Value("${from}")
    private String from;
    @Value("${tongdun.url}")
    private String url;

    @GetMapping("/")
    public String index() {
        return from + url;
    }
}
